<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: Batcher Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_batcher.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_batcher-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Batcher Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="batcher_8h_source.html">batcher.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1f732dd655ca0992866771f5ad11e089"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#a1f732dd655ca0992866771f5ad11e089">add</a> (bool *b, int length)</td></tr>
<tr class="separator:a1f732dd655ca0992866771f5ad11e089"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc184208ebc9d8360f6d50bc927d86ae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#abc184208ebc9d8360f6d50bc927d86ae">~Batcher</a> ()</td></tr>
<tr class="separator:abc184208ebc9d8360f6d50bc927d86ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89e2783a4b2191b4d1baf6b02c2223e0"><td class="memTemplParams" colspan="2">template&lt;typename T , typename... Args&gt; </td></tr>
<tr class="memitem:a89e2783a4b2191b4d1baf6b02c2223e0"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_batcher.html#a89e2783a4b2191b4d1baf6b02c2223e0">add</a> (Args &amp;&amp;... args)</td></tr>
<tr class="separator:a89e2783a4b2191b4d1baf6b02c2223e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad72b5dd1862fb8fc0355d3bc98ad8f2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#aad72b5dd1862fb8fc0355d3bc98ad8f2">to_bool</a> (bool *b)</td></tr>
<tr class="separator:aad72b5dd1862fb8fc0355d3bc98ad8f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee252ae214e29ccb150420c0cc1c452a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#aee252ae214e29ccb150420c0cc1c452a">make_semi_honest</a> (int <a class="el" href="input-check-malicious_8cpp.html#aefdd5aa9f02e7cb8d21ea22b0e6b03df">party</a>, <a class="el" href="class_backend.html">Backend</a> *be=nullptr)</td></tr>
<tr class="separator:aee252ae214e29ccb150420c0cc1c452a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a141f3d52e241d5a0cbcef2a4c5c576ad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#a141f3d52e241d5a0cbcef2a4c5c576ad">set_blocks</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *b)</td></tr>
<tr class="separator:a141f3d52e241d5a0cbcef2a4c5c576ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67b1da75db465dfee2e91ae8abd23686"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a67b1da75db465dfee2e91ae8abd23686"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_batcher.html#a67b1da75db465dfee2e91ae8abd23686">next</a> ()</td></tr>
<tr class="separator:a67b1da75db465dfee2e91ae8abd23686"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37992ea15a1a81fea1763a357a12472d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#a37992ea15a1a81fea1763a357a12472d">size</a> ()</td></tr>
<tr class="separator:a37992ea15a1a81fea1763a357a12472d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a2684d2fa879918696dae586b305f12c1"><td class="memItemLeft" align="right" valign="top">vector&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#a2684d2fa879918696dae586b305f12c1">values</a></td></tr>
<tr class="separator:a2684d2fa879918696dae586b305f12c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac175e627566a37e2b63579c4dac57012"><td class="memItemLeft" align="right" valign="top">vector&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#ac175e627566a37e2b63579c4dac57012">lens</a></td></tr>
<tr class="separator:ac175e627566a37e2b63579c4dac57012"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf86010ac38e95ce3619d7092e25cb1f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#aaf86010ac38e95ce3619d7092e25cb1f">len_ptr</a> = 0</td></tr>
<tr class="separator:aaf86010ac38e95ce3619d7092e25cb1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a969c9caa6f6dabe9c64cd78620bfc4af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#a969c9caa6f6dabe9c64cd78620bfc4af">labels</a> = nullptr</td></tr>
<tr class="separator:a969c9caa6f6dabe9c64cd78620bfc4af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22a8b07302ed0ca50baf7c16d6e3a1ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_batcher.html#a22a8b07302ed0ca50baf7c16d6e3a1ce">label_ptr</a> = nullptr</td></tr>
<tr class="separator:a22a8b07302ed0ca50baf7c16d6e3a1ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="abc184208ebc9d8360f6d50bc927d86ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc184208ebc9d8360f6d50bc927d86ae">&sect;&nbsp;</a></span>~Batcher()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Batcher::~Batcher </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1f732dd655ca0992866771f5ad11e089"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f732dd655ca0992866771f5ad11e089">&sect;&nbsp;</a></span>add() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Batcher::add </td>
          <td>(</td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a89e2783a4b2191b4d1baf6b02c2223e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89e2783a4b2191b4d1baf6b02c2223e0">&sect;&nbsp;</a></span>add() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Batcher::add </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aee252ae214e29ccb150420c0cc1c452a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee252ae214e29ccb150420c0cc1c452a">&sect;&nbsp;</a></span>make_semi_honest()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Batcher::make_semi_honest </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>party</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_backend.html">Backend</a> *&#160;</td>
          <td class="paramname"><em>be</em> = <code>nullptr</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a67b1da75db465dfee2e91ae8abd23686"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67b1da75db465dfee2e91ae8abd23686">&sect;&nbsp;</a></span>next()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T Batcher::next </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a141f3d52e241d5a0cbcef2a4c5c576ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a141f3d52e241d5a0cbcef2a4c5c576ad">&sect;&nbsp;</a></span>set_blocks()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Batcher::set_blocks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a37992ea15a1a81fea1763a357a12472d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37992ea15a1a81fea1763a357a12472d">&sect;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Batcher::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aad72b5dd1862fb8fc0355d3bc98ad8f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad72b5dd1862fb8fc0355d3bc98ad8f2">&sect;&nbsp;</a></span>to_bool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Batcher::to_bool </td>
          <td>(</td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a22a8b07302ed0ca50baf7c16d6e3a1ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22a8b07302ed0ca50baf7c16d6e3a1ce">&sect;&nbsp;</a></span>label_ptr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* Batcher::label_ptr = nullptr</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a969c9caa6f6dabe9c64cd78620bfc4af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a969c9caa6f6dabe9c64cd78620bfc4af">&sect;&nbsp;</a></span>labels</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* Batcher::labels = nullptr</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aaf86010ac38e95ce3619d7092e25cb1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf86010ac38e95ce3619d7092e25cb1f">&sect;&nbsp;</a></span>len_ptr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Batcher::len_ptr = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac175e627566a37e2b63579c4dac57012"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac175e627566a37e2b63579c4dac57012">&sect;&nbsp;</a></span>lens</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt;int&gt; Batcher::lens</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2684d2fa879918696dae586b305f12c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2684d2fa879918696dae586b305f12c1">&sect;&nbsp;</a></span>values</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt;bool&gt; Batcher::values</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/wangxiao/git/emp-toolkit/emp-tool/circuits/<a class="el" href="batcher_8h_source.html">batcher.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_batcher.html">Batcher</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
